package rocket

import (
	"github.com/apache/rocketmq-client-go/v2/rlog"
	"github.com/zeromicro/go-zero/core/logx"
)

type log struct {
}

func (l *log) Debug(msg string, fields map[string]interface{}) {
	logx.Info(msg, fields)
}

func (l *log) Info(msg string, fields map[string]interface{}) {
	logx.Info(msg, fields)
}

func (l *log) Warning(msg string, fields map[string]interface{}) {
	logx.Info(msg, fields)
}

func (l *log) Error(msg string, fields map[string]interface{}) {
	logx.Error(msg, fields)
}

func (l *log) Fatal(msg string, fields map[string]interface{}) {
	logx.Error(msg, fields)
}

func (l *log) Level(level string) {
}

func (l *log) OutputPath(path string) (err error) {
	return nil
}

func NewLogger() rlog.Logger {
	return &log{}
}
